package com.gnerv.pabu.basic.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.pabu.basic.core.dto.EmailConfigDTO;
import com.gnerv.pabu.basic.core.dto.EmailConfigSaveDTO;
import com.gnerv.pabu.basic.core.dto.EmailConfigSearchDTO;
import com.gnerv.pabu.basic.core.entity.EmailConfig;

public interface IEmailConfigService extends IService<EmailConfig> {

    boolean saveEmailConfig(EmailConfigSaveDTO emailConfigSaveDTO);

    boolean createEmailConfig(EmailConfigSaveDTO emailConfigSaveDTO);

    boolean deleteByEmailConfigId(String emailConfigId);

    boolean updateEmailConfig(EmailConfigSaveDTO emailConfigSaveDTO);

    boolean updateEmailConfigStatus(String emailConfigId, Integer status);

    EmailConfigDTO selectEmailConfig(String emailConfigId);

    Page<EmailConfigDTO> listEmailConfig(EmailConfigSearchDTO emailConfig, Long current, Long size);
}
